<?php
/*
 * @author : Pham Huu Sam
 * @phone : 0922.926.269
 */
class Home extends CI_Controller{
    //put your code here

    public function  __construct() {
        parent::__construct();
        $this->load->helper("url");
        $this->load->library("admin_layout"); // Sử dụng thư viện layout
        $this->admin_layout->setLayout("layout/admin"); // load file layout chính (view/layout/frontend.php)
    }

    // Controller mặc định cho trang chủ
    public function index(){
        $data['title'] = 'Trang Chủ';
        $this->admin_layout->view("admin/home",$data);
    }
}
?>
